ArticleDirectory
Nodename, nodevalue, and nodetype contain information about nodes.
Record several common attributes in html dom:
Nodename, nodevalue, and nodetype contain information about nodes.
The nodename attribute contains the
The tagname and nodename have the same semantics and both return the names of the included tags. For example, the above H2 tags all return H2, but tagname can only be used on element tags, nodename can be used on all nodes. The values of nodename on
This topic describes the nodeName, nodeValue, and nodeType attributes. this topic describes the nodeName, nodeValue, and nodeType attributes in detail.
NodeNameThe attribute contains the name of a node.The nodeName of the element node is the
First of all, there are three major nodes in the DOM, namely, element node, text node, attribute nodeELEMENT node: Forms the basis of the DOM. , is the root element in the document structure, representing the entire document, as well as ,,, and so
today when using Childrennodes to operate the DOM, encountered a problem, carefully check the relevant API, record:
NodeName
The NodeName property contains the name of a node. The nodeName of the element node is the label name attribute node
1. nodeName attribute: name of the node.If the node is an element node, the name of the element is returned. In this case, it is equivalent to the tagName attribute.For example: aaaa : p is returned;If it is an attribute node, nodeName returns the
1. nodename attribute: name of the node.If the node is an element node, the name of the element is returned. In this case, it is equivalent to the tagname attribute. For example, AAAA : returns p.If it is an attribute node, nodename returns the
The NodeName property contains the name of a node.
The nodename of the element node is the label name
The nodename of the attribute node is the property name
The nodename of the text node is always #text
The nodename of the document node is
//////////////////////////////////////// //////////////////////////////////////////// My system// Copyright 2008-2009 my systems inconfigurated// All Rights Reserved.//// Notice: My system permits you to use, modify, and distribute this file//
The recent development of an online XML editor is intended to use JSON as an intermediate format. Because JSON is easier to read, parse faster, and occupy less space than XML, it is easier to pass data on the web. In practice, however, there are
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.